/*
 * Log.hpp
 *
 *  Created on: Nov 15, 2014
 *      Author: toti
 */

#ifndef LOG_HPP_
#define LOG_HPP_

#include <iostream>
#include <fstream>
#include <sstream>
#include <string>

#include <ctime>


class Log : public std::ostringstream{

private:

	static Log *logInstance;

	std::ofstream logOutputFileStream;

	Log(const Log&);
	Log();

public:

	static Log &instance();

	void open(const char *logFile);
	void open(std::string &logFile);
	void flush();



};


#endif /* LOG_HPP_ */
